package com.anbang.app.ui.guide

import android.content.Context
import android.util.AttributeSet
import android.view.MotionEvent
import android.widget.HorizontalScrollView

/**
 * @Description: 事件拦截HorizontalScrollView
 * @Author: AnBang
 * @Date: 2019/1/11 19:01
 */
class CustomHorizontalScrollView(context: Context, attributeSet: AttributeSet) : HorizontalScrollView(context, attributeSet) {

    override fun onInterceptTouchEvent(ev: MotionEvent?): Boolean {
        //拦截事件
        return true
    }

    override fun onTouchEvent(ev: MotionEvent?): Boolean {
        return false
    }
}